import os

from core.base import MethodEnum, request


def good_detail(goodId, step=''):
    path = "/api/v1/goods/detail/" + goodId
    return request(MethodEnum.GET.name, path, step=step).json()


def add_to_Shop_cart(data, step=""):
    path = "/api/v1/shop-cart"
    return request(MethodEnum.POST.name, path, json=data, step=step).json()
